package advance_2;
import java.util.*;
public class LinkList {
    public static void main(String[] args) {
        //addFirst
        //addLast
        List list=new LinkedList();
        list.add("cat");
        list.add("dog");
        //list.addFirst("fox");
        list.add(0,"laowang");
        System.out.println(list);
    }
}
